﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Marbles.CMS.Core
{
    public class HtmlFormatter
    {

        public string Format(string html, HttpContext Context)
        {
            string html1 = html.Trim();
            html1 = html1.Replace("{URL}", Context.Request.Url.ToString());
            html1 = html1.Replace("{TEMPLATE}", Context.Request.Url.Segments[1]);
            return html1.Trim();
        }
    }
}
